package cc.yugu.yhdw.common.constant;

/**
 * 终端响应码 枚举类
 * 
 * @Date:Created in 2018/7/24 17:42
 * @Author:
 * @Modified By: zjn 2018/7/24 17:42
 */ 
public enum TsRespCode {

    CODE_0(0, "成功"),
    CODE_1(1, "服务器内部错误"),
    CODE_2(2, "会话超时"),
    CODE_3(3, "终端不在线"),
    CODE_4(4, "终端响应超时"),
    CODE_5(5, "公司不存在"),
    CODE_6(6, "开箱失败"),
    CODE_7(7, "截屏失败"),
    CODE_8(8, "查询失败"),
    CODE_9(9, "预约失败"),
    CODE_10(10, "取消失败"),
    CODE_11(11, "操作未完成"),
    CODE_12(12, "没有可用箱体"),
    ;

    private final int value;
    private final String name;

    private TsRespCode(int value, String name) {
        this.value = value;
        this.name = name;
    }

    public short getValue() {
        return (short) value;
    }

    public String getName() {
        return name;
    }
}
